<template>
 <div class="vmpanel">
    <!-- 面板内容设置 -->
    <div class="panelcontent">
      <slot name="panelcontent">
      <i></i>
        <!-- 面板高度-默认高度240px,每个外面调用时可单独设置 -->
        <div class="chart"></div>
      </slot>
    </div>
    <!-- 面板底部设置 -->
    <div class="panelfooter"></div>
  </div>
</template>

<script lang='ts' setup>
import {ref, reactive,computed} from 'vue'
import { useStore } from 'vuex'
import { useRouter, useRoute } from 'vue-router'
const router = useRouter
const route = useRoute
const store = useStore

</script>

<style  >
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.vmpanel {
  position: relative;
  height: 350px;
  border: 1px solid rgba(25, 186, 139, 0.17);
  background: url("../../assets/image/line(1).png");
  padding: 10px 15px 40px;
  margin-bottom: 10px;
}

.vmpanel:before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #02a6b5;
  border-left: 2px solid #02a6b5;
}

.vmpanel:after {
  position: absolute;
  top: 0;
  right: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #02a6b5;
  border-right: 2px solid #02a6b5;
}

.vmpanel .panelfooter {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.vmpanel .panelfooter:before {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #02a6b5;
  border-left: 2px solid #02a6b5;
}

.vmpanel .panelfooter:after {
  position: absolute;
  bottom: 0;
  right: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #02a6b5;
  border-right: 2px solid #02a6b5;
}

.panelcontent .chart {
  height: 300px;
  width: 550px;
  /* background-color: pink; */
}
</style>